package com.yunhe.policyfulfillment.authority.repository;
import com.yunhe.policyfulfillment.authority.domain.PolicyCompanyRegistration;
import com.yunhe.policyfulfillment.authority.model.PolicyCompanyRegistrationQueryCondition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description 企业注册表
 * @author misty
 * @date 2021-09-18
 */
@Repository
public interface PolicyCompanyRegistrationRepository {

    /**
     * 新增
     * @author misty
     * @date 2021/09/18
     **/
    int createPolicyCompanyRegistration(PolicyCompanyRegistration policyCompanyRegistration);

    /**
     * 新增
     * @author misty
     * @date 2021/09/18
     **/
    int createPolicyCompanyRegistrationSelective(PolicyCompanyRegistration policyCompanyRegistration);

    /**
     * 刪除
     * @author misty
     * @date 2021/09/18
     **/
    int deletePolicyCompanyRegistrationByPrimaryKey(@Param("id") Long id);

    /**
     * 更新
     * @author misty
     * @date 2021/09/18
     **/
    int updatePolicyCompanyRegistrationByPrimaryKey(PolicyCompanyRegistration policyCompanyRegistration);

    /**
     * 更新
     * @author misty
     * @date 2021/09/18
     **/
    int updatePolicyCompanyRegistrationByPrimaryKeySelective(PolicyCompanyRegistration policyCompanyRegistration);

    /**
     * 根据主键查询
     * @author misty
     * @date 2021/09/18
     **/
    PolicyCompanyRegistration searchPolicyCompanyRegistrationByPrimaryKey(@Param("id") Long id);


    List<PolicyCompanyRegistration> findPolicyCompanyRegistrationByCondition(PolicyCompanyRegistrationQueryCondition policyCompanyRegistrationQueryCondition);

    /**
     * @Description 根据企业用户账号查询企业注册信息
     * @Param String userAccount
     * @Return PolicyCompanyRegistration
     * @Date 2021/9/24 10:44
     */
    PolicyCompanyRegistration searchPolicyCompanyRegistrationByCompanyUserAccount(@Param("userAccount") String userAccount);
}